package cmcciot.onenet.nbapi.sdk.entity;

import cmcciot.onenet.nbapi.sdk.config.Config;

/**
 * @author LHL
 * @date: 2018/8/3
 */
public class QuerySingleDevice extends CommonEntity {
    private String deviceId;

    public QuerySingleDevice(String deviceId) {
        this.deviceId = deviceId;
    }

    @Override
    public String toUrl() {
        StringBuilder url = new StringBuilder(Config.getDomainName());
        url.append("/devices/").append(this.deviceId);
        return url.toString();
    }
}
